import request from '@/utils/request'

export function getOrderList(query) {
  return request({
    url: '/order/list',
    method: 'get',
    params: query
  })
}

export function getOrderById(id) {
  return request({
    url: '/order/getById/' + id,
    method: 'get'
  })
}

export function deleteOrder(id) {
  return request({
    url: '/order/deleteById/'+id,
    method: 'post'
  })
}

export function confirmDelivery(data) {
  return request({
    url: '/order/confirmDelivery',
    method: 'post',
    data
  })
}

